package com.mt.api.modules.controller;

import com.mt.api.modules.service.AppNewsService;
import com.mt.common.response.WebResponse;
import io.swagger.annotations.Api;
import lombok.RequiredArgsConstructor;
import com.mt.log.annotation.Log;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @author plover
 * @date 2020-07-06
 **/
@RestController
@RequiredArgsConstructor
@Api(tags = "消息管理")
@RequestMapping("/app/news")
public class AppNewsController {

    private final AppNewsService appNewsService;


    @GetMapping("/list")
    @Log("查询消息列表")
    public WebResponse listByBrandId() {
        return appNewsService.queryNewsByBrandId();
    }


}